package com.xian;

import com.xian.bean.Person;
import com.xian.util.MyDateUtils;

import java.time.*;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 测试使用java相关命令
 */
public class TestPerson {
    public static void main(String[] args) {


        List<Person> persons = new ArrayList<>();


        Person person1 = new Person(1, "jemson", MyDateUtils.localDate2Date("2015-08-08"));
        Person person2 = new Person(2, "杨幂", MyDateUtils.localDate2Date("2010-08-09"));
        Person person3 = new Person(3, "景甜", MyDateUtils.localDate2Date("2008-05-18"));
        Person person4 = new Person(4, "安以轩", MyDateUtils.localDate2Date("2000-08-03"));
        Person person5 = new Person(5, "高圆圆", MyDateUtils.localDate2Date("2001-07-28"));
        System.out.println(person1);

        persons.add(person1);
        persons.add(person2);
        persons.add(person3);
        persons.add(person4);
        persons.add(person5);


        System.out.println("persons size => "+persons.size() + ", persons info :");
        System.out.println(persons);




    }
}
